package com.ys.num2.Service.Imp;

import com.ys.num2.Dao.EmployeeDao;
import com.ys.num2.Entity.Employee;
import com.ys.num2.Service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeServiceImp implements EmployeeService {

    @Autowired
    private EmployeeDao employeeDao;

    /**
     * 实现 获取员工信息的方法
     * 1.调用持久层|数据层 来实现
     *
     * @return
     */
    @Override
    public Employee getEmpObj() {
        return employeeDao.getEmpObj();
    }
}
